#!/bin/bash

if [ \! -d classes ]; then mkdir classes; fi

javac -d classes -sourcepath src -cp classes:lib/hadoop-0.18.3-core.jar:lib/commons-cli-2.0-SNAPSHOT.jar:lib/commons-logging-1.0.4.jar:lib/commons-logging-api-1.0.4.jar \
src/org/apache/hadoop/streaming/HadoopStreaming.java \
src/org/apache/hadoop/streaming/KeyFieldBasedPartitioner.java

cd classes
jar cvfm ../streaming.jar ../MANIFEST.MF .
